﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Reflection;
public partial class LogoutUniverse : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string msgErr = "";
        try
        {
            msgErr = Page.Request.QueryString["msg"].ToString();
        }
        catch { }

        txtError.Value = msgErr.Replace("</br>", "\r\n");

        btnClipBoard.ToolTip = "Copiar texto para area de transferência: ";

        if (msgErr.Trim() != "")
        {
            btnClipBoard.ToolTip += msgErr.Replace("</br>", "\r\n");
            btnClipBoard.Visible = true;
        }
        else
        {
            btnClipBoard.ToolTip = "";
            btnClipBoard.Visible = false;
        }
        
        string appLicenca = System.Configuration.ConfigurationManager.AppSettings["AppVersion"];
        if (appLicenca == "L")
        {
            ImageButton1.ImageUrl = "~/App_Themes/Lite/images/Titulo.png";
            td1.BgColor = "#fcfcfc";
        }

        Session.RemoveAll();
        Session.Clear();
        Session.Abandon();
    }
}
